package com.platform.service;

import com.platform.dao.ApiSysParameterMapper;
import com.platform.entity.SysParameterVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class ApiSysParameterService {
    @Autowired
    private ApiSysParameterMapper sysParameterDao;

    public SysParameterVo queryObject(Integer id) {
        return sysParameterDao.queryObject(id);
    }


    public List<SysParameterVo> queryList(Map<String, Object> map) {
        return sysParameterDao.queryList(map);
    }


    public int queryTotal(Map<String, Object> map) {
        return sysParameterDao.queryTotal(map);
    }


    public void save(SysParameterVo sysParameter) {
        sysParameterDao.save(sysParameter);
    }


    public void update(SysParameterVo sysParameter) {
        sysParameterDao.update(sysParameter);
    }


    public void delete(Integer id) {
        sysParameterDao.delete(id);
    }


    public void deleteBatch(Integer[] ids) {
        sysParameterDao.deleteBatch(ids);
    }
}
